package com.tiejun.ge.http.service;

import com.tiejun.ge.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(name = "zero",url = "http://127.0.0.1:8080")
public interface FeignService {

    @GetMapping("/zero/helloWorld")
    R<?> getHelloWorld();

    @PostMapping("/zero/user/detail")
    R<?> getUserInfo(@RequestBody Map<String, Object> param);
}
